home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_7.lha / 7_7 / 7_7dlist.h < prev    next >
Text File  |  1993-08-08  |  392b  |  21 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. lass dlist
  6.  
  7.    friend dlist_iterator;
  8.    dlink *last;
  9.  
  10. ublic:
  11.    dlist() { last = 0; }
  12.    dlist(ent a)
  13.    {
  14. last = new dlink(a);
  15. last->next = last->prev = last;
  16.    }
  17.    int isempty() { return last != 0; }
  18.    void clear();
  19.    ~dlist() { clear(); }
  20. ;
  21.